body {
    background-color: #f1f1f1;
}

// 头部
header {
    height: 50px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding-left: 16px;
    padding-right: 7px;
    background-color: palevioletred;
    h1 {
        a {
            font-size: 0;
            width: 190px;
            height: 30px;
            background: url('../images/header_logo.png') no-repeat;
            background-size: 190px 30px;
            margin-top: -6px;
        }
    }
    >a {
        margin-top: 8px;
        height: 34px;
        width: 34px;
        background: url('../images/header_app.png') no-repeat;
        background-size: 34px 34px;
    }
}

// 搜索part
.search {
    margin-top: 0;
    display: flex;
    height: 48px;
    width: 100%;
    border: 3px solid palevioletred;
    background-color: white;
    padding: 8px;
    input:nth-child(1) {
        background-color: #f1f1f1;
        flex: 8;
        //height: 0.3rem;
        padding: 14px 0;
        border-radius: 15px;
        text-indent: 22px;
        font-size: 14px;
        margin-right: 5px;
    }
    input:nth-child(2) {
        flex: 1;
        background-color: palevioletred;
        color: white;
        font-size: 18px;
        padding: 0 15px;
        border-radius: 15px;
    }
}

// 菜单栏
.menu {
    background-color: #fff;
    display: flex;
    flex-wrap: wrap;
    padding: 7px 0;
    margin-bottom: 5px;
    margin-top: 10px;
    a {
        width: 25%;
        text-align: center;
        font-size: 14px;
        padding: 5px 0;
        img {
            width: 70%;
            margin: 0 auto;
        }
    }
}

// 超值折扣推荐
.count {
    background-color: white;
    .title {
        background-color: palevioletred;
        display: flex;
        justify-content: space-between;
        padding: 0 8px;
        height: 35px;
        line-height: 35px;
        span {
            font-size: 18px;
            color: white;
        }
        .pull-right {
            margin-top: 6px;
            color: white;
            font-size: 18px;
        }
    }
    .content {
        a {
            display: flex;
            margin-bottom: 6px;
            background-color: #fff;
            border-bottom: 1px solid #e7e7e7;
            .content_img {
                width: 30%;
                padding-top: 12px;
            }
            .content_text {
                width: 70%;
                .productName {
                    padding: 12px;
                    font-size: 16px;
                    color: #3f403f;
                    span {
                        color: palevioletred;
                    }
                }
                .product_info {
                    padding: 36px 12px;
                    font-size: 12px;
                    color: #666;
                }
            }
        }
    }
    // 更多优惠信息
    .more_discount {
        background-color: white;
        text-align: center;
        // width: 100%;
        height: 30px;
        line-height: 30px;
        border: 1px solid #dddddd;
        border-radius: 4px;
        margin: 4px;
    }
}

// 品牌排行
.brand {
    background-color: palevioletred;
    color: white;
    height: 30px;
    line-height: 30px;
    padding: 0 10px;
    .pull-left {
        font-size: 18px;
    }
    .pull-right {
        margin-top: 5px;
        color: white;
        font-size: 18px;
    }
}

// 底部
footer {
    background-color: #f1f1f1;
    .footer_top {
        display: flex;
        border-top: 1px solid #c4c4c4;
        border-bottom: 1px solid #c4c4c4;
        text-align: center;
        height: 35px;
        line-height: 35px;
        margin-top: 25px;
        font-size: 14px;
        >span:nth-child(1) {
            flex: 3;
            border-right: 1px solid #c4c4c4;
        }
        >span:nth-child(2) {
            flex: 3;
            border-right: 1px solid #c4c4c4;
        }
        .back {
            flex: 4;
            img {
                margin-top: 9px;
                margin-left: 55px;
                float: left;
                height: 14px;
                width: 14px;
                vertical-align: middle;
            }
            >span {
                float: left;
            }
        }
    }
    .footer_content {
        .footer_link {
            margin-top: 18px;
            display: flex;
            justify-content: center;
            a {
                display: inline-block;
                margin-right: 3px;
                height: 20px;
                &:nth-child(1) {
                    color: red;
                }
                &:nth-child(3) {
                    color: #757575;
                }
            }
        }
        p {
            font-size: 10px;
            text-align: center;
            margin-bottom: 20px;
        }
    }
}